package com.ctsi.system.domain;

import java.util.ArrayList;
import java.util.Calendar;
import java.util.List;

/**
 * @author zhangjw
 * @className DateChecker
 * @description TODO
 * @date 2019/3/30 13:03
 **/
public class DateChecker {
    List<WorkCalendar> list = new ArrayList<WorkCalendar>();

    public List<WorkCalendar> getList() {
        return list;
    }

    public void setList(List<WorkCalendar> list) {
        this.list = list;
    }

    public boolean test(Calendar c) {
        if (list == null)
            return true;
        for (WorkCalendar wc : list) {
            if (wc.equals(c)) {
                return false;
            }
        }
        return true;
    }
}
